<?php
/**
 * 评论与文章与栏目关联模型
 */
class CommentModel extends ViewModel{
	public $view = array(
		'article'	=> array(
			'type'	=> 'inner',
			'field'	=> 'isdel',
			'on'	=> 'comment.aid=article.aid'
			),
		'category'	=> array(
			'type'	=> 'inner',
			'field'	=> 'isoff',
			'on'	=> 'article.cid=category.cid'
			),

		);
}